<div id="city-popup-inner">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'admin-area-city-form',
        //'action' => '/main/ajax/contactJoin',
        'enableClientValidation' => true,
        'htmlOptions' => array('class' => 'form', 'novalidate' => 'novalidate'),
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>
    <div>
        <?php echo $form->error($model, 'title'); ?>
        <?php echo $form->error($model, 'description'); ?>              
    </div>
    <div id="promocode-popup-content">				
        <p>Добавить промокод</p>
        <div id="promocode-popup-content-inner">				
            <input type="hidden" name="promocode-action" value="add">
            <?php echo $form->textField($model, 'title', array('placeholder' => 'Название промокода', 'class' => 'text-field')); ?> 
            <?php echo $form->textArea($model, 'description', array('placeholder' => 'Описание промокода', 'class' => 'text-area')); ?>                
        </div>
        <div class="clear"></div>
    </div>
    <div id="promocode-popup-inner-footer">
        <button id="promocode-popup-add-button" class="single-button">Добавить</button>
    </div>
    <?php $this->endWidget(); ?>
</div>
